<template>
  <component :is="layout">
    <HomeRouterView/>
  </component>
</template>
<script setup>
import GlobalLayout from '@/components/layout/GlobalLayout.vue';
import SimpleGlobalLayout from '@/components/layout/SimpleGlobalLayout.vue';
import HomeRouterView from '@/components/portal/HomeRouterView.vue';
import {computed} from 'vue';
import store from '@/store';
defineOptions({name: 'Home'})

const layout = computed(() => store.state.globalLayout === 'normal' ? GlobalLayout : SimpleGlobalLayout);
</script>
<style scoped lang="scss">

</style>